package com.itheima.service;

import com.itheima.entity.Result;
import com.itheima.pojo.Order;

import java.util.Map;

public interface OrderService {
    /**
     * 用户预约
     * @param map
     * @return
     */
    Result order(Map<String, String> map) throws Exception;

    Result order(Map<String, String> map,Integer[] setmealIds) throws Exception;

    /**
     * 根据id查询预约详情
     * @param id
     * @return
     */
    Order findById(Integer id);

    Result update(Map<String, String> map, Integer[] setmealIds) throws  Exception;

    void delete(Integer id,String orderDate) throws Exception;

    void updateOrderStatusById(Integer id);
}
